<template>
  <el-card>
    <div slot="header" class="header">
      <div class="search-header">
        <span>线上热闹搜索</span>
        <el-dropdown>
          <span class="el-dropdown-link">
             <i class="el-icon-more"></i>
          </span>
          <el-dropdown-menu slot="dropdown">
            <el-dropdown-item>黄金糕</el-dropdown-item>
            <el-dropdown-item>狮子头</el-dropdown-item>
            <el-dropdown-item>螺蛳粉</el-dropdown-item>
            <el-dropdown-item>双皮奶</el-dropdown-item>
            <el-dropdown-item>蚵仔煎</el-dropdown-item>
          </el-dropdown-menu>
        </el-dropdown>
      </div>
    </div>
    <div>
      <el-row :gutter="10">
        <el-col :span="12">
          <!-- 首页最下面左边拆线图 -->
          <LineCharts></LineCharts>
        </el-col>
        <el-col :span="12">
          <!-- 首页最下面左边拆线图 -->
          <LineCharts></LineCharts>
        </el-col>
      </el-row>
      <!-- 表格-->
      <el-table :data="tableData" style="width: 100%" stripe border>
        <el-table-column prop="" label="排名" width="80" align="center"/>
        <el-table-column prop="" label="搜索关键字" width="180" align="center"/>
        <el-table-column prop="" label="用户数" sortable align="center"/>
        <el-table-column prop="" label="周涨幅" sortable align="center"/>
      </el-table>
      <!-- 分页器-->
      <el-pagination layout="prev, pager, next" :total="1000"/>
    </div>
  </el-card>
</template>
<script>
import LineCharts from './lineCharts'

export default {
  name: '',
  components: {
    LineCharts
  },
  data() {
    return {
      tableData: [],
      page: 1, // 代表的分页器第几页
      limit: 3, // 当前页数展示数据条数
      total: 0, // 总共数据条数
      list: [] // 列表展示的数据
    }
  },
  methods: {
    getPageList() {

    },
    handleSizeChange() {

    }
  }
}
</script>
<style scoped>
.el-pagination {
  float: right;
}

.search-header {
  display: flex;
  justify-content: space-between;
}

.header {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}
</style>
